import { request } from '@/utils';
import type { ProviderParams  } from './types'; // 导入KnowledgeBaseParams接口类型，用于定义知识库参数的类型。

// 添加供应商配置
export const addSupplier = (providerParams: ProviderParams) => {
    return request.post('/api/AIProvider/Provider', providerParams);
  };
  
  // 获取用户配置的供应商
  export const getUserSupplier = (type: number) => {
    return request.get('/api/AIProvider/getUseSupplierList?type=' + type);
  };